<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
     <%!
        public void jspInit(){    
    	  System.out.println("init");
        }
        public  void  jspDestroy(){
        	System.out.println("destroy");
        }  
        int day=7;
     
     %>
     <p>
                     今天的日期是：<%= (new java.util.Date()).toLocaleString()%>
     </p>
     <%
        if(day==1||day==7){
     %>
     <p>这是周末</p>
     <%
        }else{ 
     %>
     <p>
                    这是工作日
     </p>
     <% } %>
     <h3> For 循环实例</h3>
     <% for (int fontSize =1;fontSize<=3;fontSize++){%>
        <font color ="green" size="<%= fontSize %>">菜鸟互啄</font><br/>
     <%}%>

</body>
</html>